package appconfig

import "github.com/mattermost/viper"

type MysqlConfig struct {
	Dsn string
}
type AppConfig struct {
	MysqlConfig
}

var Init AppConfig

func InitConfig() {
	viper.SetConfigFile("./appconfig/appconfig.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&Init)
}
